﻿<div class="navbar navbar-duomi navbar-static-top" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<div class="navbar-brand" id="logo">蜉蝣问答</div>
		</div>
		<ul class="nav navbar-nav navbar-right"> 
			<li><a>欢迎您，${loginUser.nickName}</a></li> 
            <li><a onclick="logout();"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li> 
        </ul> 
	</div>
</div>
<script>
function logout(){
	layer.confirm('确认退出？', {icon: 3, title:'提示'}, function(index){
		window.location.href = "login/logout";
	});
}
</script>